package cn.aixuegao.common.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 返回有数据并且有权限码的实体类
 * @author hxy
 * @date 2018/3/22
 */
@ApiModel(description="返回的数据",parent=Response.class)
public class ResponseData extends Response{
	/**
	 * Obejct 数据
	 */
	@ApiModelProperty(value = "返回的主内容")
	private Object data;
	
	/**
	 * 以下为构造方法
	 */
    public ResponseData(Object data) {
        this.data = data;
    }
    
    public ResponseData(ResultMsg msg) {
    	  super(msg);
    }
    
    public ResponseData(String rspCode, String rspMsg) {
        super(rspCode, rspMsg);
    }

    public ResponseData(ResultMsg msg, Object data) {
        super(msg);
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

	@Override
	public String toString() {
		return "ResponseData [data=" + data + super.toString()+"]";
	}
}
